Learn how to prepare your index structure for AI Personalization.
color
with finite values like red, green, and blue is considered a good categorical attribute because it organizes your index into three distinct buckets.
Other good categorical attributes include gender
, brand
or categories
.
objectID
and title
, are poor choices because they don’t offer any grouping into buckets.
Other poor categorical attributes include description
, sku
, or price
.
color
can be defined as a string, an array, and an integer.
A structure like this usually indicates an underlying issue with your data.
You must evaluate your index and ensure a consistent type for your attributes.
color:red
, if AI Personalization randomly picks a set of users from last month (say 200), it would want to see at least some of them interacting with red products.
brand
is likely to be filtered out if AI Personalization notices that there are thousands of different brands across millions of products and no single brand is getting enough user interaction to be considered important.
color:pink_with_brown_dots
) aren’t excluded entirely but the exotic values are filtered out and won’t be processed.